package logic

import (
	"context"
	"zg4zk2/common/proto/user"
	"zg4zk2/service/server"
)

type ServerUser struct {
	user.UnimplementedUserServer
}

func (s ServerUser) Login(ctx context.Context, in *user.LoginReq) (*user.LoginResp, error) {
	login, err := server.Login(in)
	if err != nil {
		return nil, err
	}
	return login, err
}
func (s ServerUser) SendSms(ctx context.Context, in *user.SendSmsReq) (*user.SendSmsResp, error) {
	login, err := server.SendSms(in)
	if err != nil {
		return nil, err
	}
	return login, err
}
